3D Graphics Programming with QuickDraw 3D 1.5.4
Previous | QD3D Book | Overview | Chapter Contents | Next |
QuickDraw 3D provides routines that you can use to create and edit aspect ratio cameras.
You can use the Q3ViewAngleAspectCamera_New function to create a new aspect ratio camera.
TQ3CameraObject Q3ViewAngleAspectCamera_New (
const TQ3ViewAngleAspectCameraData *cameraData);
You can use the Q3ViewAngleAspectCamera_GetData function to get the data that defines an aspect ratio camera.
TQ3Status Q3ViewAngleAspectCamera_GetData (
TQ3CameraObject camera,
TQ3ViewAngleAspectCameraData *cameraData);
The Q3ViewAngleAspectCamera_GetData function returns, through the cameraData parameter, information about the aspect ratio camera specified by the camera parameter. See "Aspect Ratio Camera Data Structure" for a description of an aspect ratio camera data structure.
You can use the Q3ViewAngleAspectCamera_SetData function to set the data that defines an aspect ratio camera.
TQ3Status Q3ViewAngleAspectCamera_SetData (
TQ3CameraObject camera,
const TQ3ViewAngleAspectCameraData *cameraData);
You can use the Q3ViewAngleAspectCamera_GetFOV function to get the maximum field of view of an aspect ratio camera.
TQ3Status Q3ViewAngleAspectCamera_GetFOV (
TQ3CameraObject camera,
float *fov);
You can use the Q3ViewAngleAspectCamera_SetFOV function to set the maximum field of view of an aspect ratio camera.
TQ3Status Q3ViewAngleAspectCamera_SetFOV (
TQ3CameraObject camera,
float fov);
You can use the Q3ViewAngleAspectCamera_GetAspectRatio function to get the aspect ratio of an aspect ratio camera.
TQ3Status Q3ViewAngleAspectCamera_GetAspectRatio (
TQ3CameraObject camera,
float *aspectRatioXToY);
You can use the Q3ViewAngleAspectCamera_SetAspectRatio function to set the aspect ratio of an aspect ratio camera.
TQ3Status Q3ViewAngleAspectCamera_SetAspectRatio (
TQ3CameraObject camera,
float aspectRatioXToY);
Previous | QD3D Book | Overview | Chapter Contents | Next |